Authing DocsDocuments
Concept
workflow
Guides
Development Integration
Application integration
Concept
workflow
Guides
Development Integration
Application integration
Old Version
workflow
  • An overview of identity automation
  • Quick start

  • Write Workflow

  • Execute Workflow

  • Operate internal resources of Authoring
  • Using application connectors

  • Process control nodes

  • Data processing nodes

    • Custom Code
    • Data conversion
    • Data filtering
    • Incoming JSON data
    • XML
    • Split array
    • Data synthesis
    • Data reception
    • Data encryption
    • Read RSS
    • Array merging
    • Dataset comparison
    • Tree structure transformation
    • Analyzing Recurrent Data
    • HTML extraction
    • Markdown
    • Boolean

    • Text

    • Url

    • Number

    • Date

    • Object

    • List

  • Workflow customization capability

  • Using templates

  1. workflow
  2. /
  3. Data processing nodes

  4. /
  5. Data conversion

¶ Data conversion

¶ Node Introduction

The Data Conversion node can help you convert data from one format or structure to another. If you also have such demand scenarios, you can choose to use data conversion nodes to complete them.

  • You are preparing to synchronize data to a third party, and you need to map the fields to the fields of the third party.
  • You are preparing to aggregate data from multiple different data sources into a unified format.
  • You are preparing to add some fields to the data to enrich it, such as adding some tags or timestamps.

The data conversion nodes include but are not limited to the above scenarios. Usually, when doing data ETL, they can also be completed in conjunction with the [Data Filtering] (/workflow/Data Processing Node/Data Filtering. hl) node.

¶ Quick Start

¶ Add node

Click on "Executor" in the canvas, search for "Data Conversion" on the "Filter Applications" card, and click on the Data Conversion node to add a data conversion node to the workflow canvas.

¶ Configuration explanation

Data Source : As the input data for this node, it is usually the output content of the previous node and also the data we are preparing to process.

Keep unconfigured conversions Rule Key : If you choose to keep, keys that have not been configured with conversion rules below will also be retained and used as output parameters to flow to the next node; If you choose to remove, the key with conversion rules configured will be retained later, and other keys will be discarded.

Conversion Rules Constraints : Provides some commonly used synchronization conversion templates as auxiliary options.

Conversion Rules : Configure specific conversion rules for data

Conversion Rules Type:

  • Field mapping: Mapping from the original key to a new key can be understood as giving the key a new name.
  • Expression: On the basis of field mapping, expression support has been added, which can be converted by writing simple expressions such as variables and triplets.
  • Fixed value: Assign a fixed value to a field.
  • Delete field: Delete the configured key.
  • Enumeration value: The original enumeration value is mapped to a new enumeration value, and both key and value can be mapped.

¶ Application examples

  1. First, add a "Incoming JSON Data" node to simulate the data to be processed.
{
    "id": 10001,
    "name": "zhangsan",
    "gender": "F",
    "hobbies": [
      {
        "id": 1,
        "name": "Basketball"
      },
      {
        "id": 2,
        "name": "game"
      }
    ]
  }

  1. Add a data conversion node, map name to username, and map gender from "M/F" to "male/female".
  2. First assemble the data source and provide the output for the previous "incoming JSON data" node.

  1. Configure field mapping rules.

  1. Click "Execute Now" and wait for the workflow to complete before you can see the results of data conversion in the running log.

The converted data is:

{
  "data": [
    {
      "gender": "female",
      "hobbies": [
        {
          "id": 1,
          "name": "Basketball"
        },
        {
          "id": 2,
          "name": "game"
        }
      ],
      "name": "zhangsan",
      "id": 10001,
      "username": "zhangsan"
    }
  ]
}
Prev: Custom Code Next: Data filtering
  • Add node
  • Configuration explanation
  • Application examples

User identity management

Integrated third-party login
Mobile phone number flash check (opens new window)
Universal login form component
Custom authentication process

Enterprise internal management

Single Sign On
Multi-factor Authentication
Authority Management

Developers

Development Document
Framework Integration
Blog (opens new window)
GitHub (opens new window)
Community User Center (opens new window)

Company

400 888 2106
sales@authing.cn
16 / F, Block B, NORTH STAR CENTURY CENTER, Beijing(Total)
room 406, 4th floor, zone B, building 1, No. 200, Tianfu Fifth Street, Chengdu(branch)

Beijing ICP No.19051205-1

© Beijing Steamory Technology Co.